const nodata = require('../tw-lib-base/no-data/props')
const commonProps = require('../tw-lib-base/chart/common-props')
const axisProps = require('../tw-lib-base/chart/axis-props')
const datazoomProps = require('../tw-lib-base/chart/datazoom-props')
const tooltipProps = require('../tw-lib-base/chart/tooltip-props')

module.exports = {
  ...commonProps,

  ...axisProps,
  ...datazoomProps,
  ...tooltipProps,

  data: {
    type: Array,
    default () {
      return [
        {
          "name": '部分公开',
          "value": 5,
          "label1": "累计开展8次",
          "label2": "本年度开展2次",
          "symbolSize": 60,
          "offset": [28, 70],
          "opacity": .95,
          "fontSize": 18,
          "labelFontSize": 14,
          "fontWeight": 800,
          "lineHeight": 22
        },
        {
          "name": '行政复议',
          "value": 3,
          "label1": "累计开展8次",
          "label2": "本年度开展2次",
          "symbolSize": 60,
          "offset": [90, 63],
          "opacity": .95,
          "fontSize": 18,
          "labelFontSize": 14,
          "fontWeight": 800,
          "lineHeight": 22
        },
        {
          "name": '予以公开',
          "value": 3,
          "label1": "累计开展8次",
          "label2": "本年度开展2次",
          "symbolSize": 60,
          "offset": [50, 50],
          "opacity": .95,
          "fontSize": 18,
          "labelFontSize": 14,
          "fontWeight": 800,
          "lineHeight": 22
        },
        {
          "name": '不予公开',
          "value": 3,
          "label1": "累计开展8次",
          "label2": "本年度开展2次",
          "symbolSize": 60,
          "offset": [14, 26],
          "opacity": .95,
          "fontSize": 18,
          "labelFontSize": 14,
          "fontWeight": 800,
          "lineHeight": 22
        },
        {
          "name": '行政诉讼',
          "value": 3,
          "label1": "累计开展8次",
          "label2": "本年度开展2次",
          "symbolSize": 60,
          "offset": [80, 28],
          "opacity": .95,
          "fontSize": 18,
          "labelFontSize": 14,
          "fontWeight": 800,
          "lineHeight": 22
        }
      ]
    },
    name: '图表数据集',
    filedType: 'api'
  },

  height: {
    type: String,
    default: '400px',
    name: '图表容器高度',
    filedType: 'string'
  },
  showValue: {
    type: Boolean,
    default: false,
    name: '只显示文本',
    filedType: 'switch'
  },

  showAxis: {
    type: Boolean,
    default: false,
    name: '显示坐标轴',
    filedType: 'switch'
  },

  ...nodata

}
